package cn.demoncat.util.mall.ehsy.constant;

/**
 * 西域接口
 *
 * @author 延晓磊
 * @since 2022年07月25日
 */
public enum EhsyApi {

    accessToken("获取token信息", "accessToken"),

    getPageNum("获取商品池编号", "mall/getPageNum"),
    getSkuByPage("获取池内商品编号", "mall/getSkuByPage"),
    getDetail("获取商品详细信息", "mall/getDetail"),
    skuState("获取商品上下架状态", "mall/skuState"),
    skuImage("获取商品图片信息", "mall/skuImage"),
    checkAreaLimit("查询商品区域购买限制", "mall/checkAreaLimit"),
    getSellPrice("查询商品价格", "mall/getSellPrice"),
    getNewStockById("查询商品库存", "mall/getNewStockById"),
    getSkuByEndCategory("通过末级产线ID获取商品编码", "mall/getSkuByEndCategory"),
    getFreight("查询运费", "getFreight"),

    submitOrder("统一下单", "mall/submitOrder"),
    confirmOrder("确认订单", "mall/confirmOrder"),
    cancel("取消订单", "mall/cancel"),
    selectOrderIdByThirdOrder("检查订单", "mall/selectOrderIdByThirdOrder"),
    qrySubOrder("查询订单信息", "mall/qrySubOrder"),
    qrySubOrderByThirdOrder("查询订单信息（根据第三方订单号）", "mall/qrySubOrderByThirdOrder"),
    qryPackage("查询发货单信息", "mall/package"),
    logistics("查询物流信息", "mall/logistics"),
    orderConfirAndReceipt("签收订单", "mall/orderConfirAndReceipt"),

    checkNewOrder("新建订单对账", "mall/checkNewOrder"),
    checkDlokOrder("妥投/部分妥投订单对账", "mall/checkDlokOrder"),
    checkRefuseOrder("拒收订单对账", "mall/checkRefuseOrder"),

    serviceOrder("申请售后服务", "mall/serviceOrder"),
    getServiceDetailInfo("查询售后服务信息", "mall/getServiceDetailInfo"),

    get("获取推送消息", "mall/get"),
    delete("删除推送消息", "mall/delete"),

    invoiceApply("申请开票", "mall/invoiceApply"),
    qryInvoice("查询发票信息", "mall/qryInvoice"),
    invoiceWayBill("查询发票运单", "mall/invoiceWayBill"),
    qryInvoiceItem("查询发票详情", "mall/qryInvoiceItem");


    private final String name;
    private final String url;

    EhsyApi(String name, String url) {
        this.name = name;
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }
}
